package com.dream.app.service;

import java.util.List;

import com.dream.model.app.AppAbstractUser;
import com.dream.model.app.AppOrg;
import com.dream.vo.base.TreeNodeVO;

public interface OrgService {
	
	// recur all the org
	AppOrg getOrgTree(final Long checkedId);
	
	//for query use
	List<Long> getLeafOrgs(String first,String second);
	
	//for select data source
	List<AppOrg> getFirstOrg();
	
	List<AppOrg> getFirstOrgOfMine(AppAbstractUser user);
	
	List<AppOrg> getChildrenOfMine(Long parentId,AppAbstractUser user);
	
	void update(final TreeNodeVO vo,final AppAbstractUser user);
	
	void delete(final Long id,final AppAbstractUser user);
	
	 List<AppOrg> getParent(Long id);
	 
	 AppOrg getDetail(Long id); 
	 
	 List<AppOrg> getChild(Long id); 
		
	
}
